import base from './base'

export default class News extends base {
    /**
   * 登陆授权
   */
    static async signIn(options) {
        const url = `${this.baseUrl}/auth/adminToken`
        return this.post(url, options)
    }
    /**
    * 刷新TOKEN
    */
    static async refreshToken(options) {
        const url = `${this.baseUrl}/auth/adminToken`
        return this.post(url, options)
    }
    /**
     * 获取验证码
     */
    static getCode(options) {
        const url = `${this.baseUrl}/cap/get?id=` + options
        return url
    }
}
